import axios from '@/libs/request/axios'

/**
 *解抵押-解抵押列表查询
 * @param params
 * @returns {*}
 */
export const getMortgageList = (params) => {
    return axios.request({
        url: "/apply/mortgage/getMortgageList",
        method: "POST",
        data: params,
    })
}

/**
 *解抵押-解抵押列表模糊查询
 * @param params
 * @returns {*}
 */
export const matching = (params) => {
    return axios.request({
        url: "/apply/mortgage/matching",
        method: "POST",
        data: params,
    })
}

/**
 *资产修正-获取解抵押列表
 * @param params
 * @returns {*}
 */
export const getAfterMortgageList = (params) => {
    return axios.request({
        url: "/apply/afterMortgage/getAfterMortgageList",
        method: "POST",
        data: params,
    })
}

/**
 *资产修正-模糊查询
 * @param params
 * @returns {*}
 */
export const afterMortgageMatching = (params) => {
    return axios.request({
        url: "/apply/afterMortgage/afterMortgageMatching",
        method: "POST",
        data: params,
    })
}


/**
 * 根据合同Id获取解抵押信息
 * @param params
 * @returns {*}
 */
export const get = (params) => {
    return axios.request({
        url: "/apply/mortgage/get",
        method: "POST",
        data: params,
    })
}
/**
 * 根据合同Id调确定按钮
 * @param params
 * @returns {*}
 */
export const sure = (params) => {
    return axios.request({
        url: "/apply/mortgage/sure",
        method: "POST",
        data: params,
    })
}
